package com.sixth.volunteerservicesystem.domain;

import java.util.List;

public class PageResult<T> {
    private int code;   // 0 success;1 false
    private String msg; // 错误信息
    private int count;  // 总记录数
    private List<T> data;


//    "code": 0
//            ,"msg": ""
//            ,"count": 3000000
//            ,"data": [{
//        "id": "10001"
//                ,"username": "杜甫"
//                ,"email": "xianxin@layui.com"
//                ,"sex": "男"
//                ,"city": "浙江杭州"
//                ,"sign": "点击此处，显示更多。当内容超出时，点击单元格会自动显示更多内容。"
//                ,"experience": "116"
//                ,"ip": "192.168.0.8"
//                ,"logins": "108"
//                ,"joinTime": "2016-10-14"

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
